package com.evil.kingdom.pojo.entity.person.soldier;

import com.evil.kingdom.pojo.entity.base.Fight;
import com.evil.common.mongo.entity.SingleName;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 兵种
 *
 * @author liyang
 * @date 2024-05-23 14:48
 */
@Getter
@Setter
@Document
public class SoldierType extends Fight implements SingleName {

    /**
     * 名称
     */
    @Id
    @NotBlank(message = "名称不能为空")
    private String name;

    @Override
    public String getEntityName() {
        return "兵种";
    }
}
